package cn.DesignModel.singleton;

/**
 * @author: lizemin
 * @version: 1.0
 */
public class Demo {
    //这是一个main方法,是程序的入口
    public static void main(String[] args) {
        //枚举类
        SingleTon3 instance = SingleTon3.INSTANCE;
        System.out.println(instance.name());
        instance.setName("lizemin");
        System.out.println(instance.getName());

    }
}
